/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ejb.warehouse;

import java.io.Serializable;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author ciummo
 */
@Entity
@Table(name = "Ordine")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Ordine.findAll", query = "SELECT o FROM Ordine o"),
    @NamedQuery(name = "Ordine.findByIdOrdine", query = "SELECT o FROM Ordine o WHERE o.idOrdine = :idOrdine"),
    @NamedQuery(name = "Ordine.findByDataArrivo", query = "SELECT o FROM Ordine o WHERE o.dataArrivo = :dataArrivo"),
    @NamedQuery(name = "Ordine.findByTipoPagamento", query = "SELECT o FROM Ordine o WHERE o.tipoPagamento = :tipoPagamento"),
    @NamedQuery(name = "Ordine.findByResoFranco", query = "SELECT o FROM Ordine o WHERE o.resoFranco = :resoFranco"),
    @NamedQuery(name = "Ordine.findByStato", query = "SELECT o FROM Ordine o WHERE o.stato = :stato"),
    @NamedQuery(name = "Ordine.findByNote", query = "SELECT o FROM Ordine o WHERE o.note = :note")})
public class Ordine implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "idOrdine")
    private Integer idOrdine;
    @Column(name = "dataArrivo")
    private String dataArrivo;
    @Column(name = "tipoPagamento")
    private String tipoPagamento;
    @Column(name = "resoFranco")
    private Boolean resoFranco;
    @Column(name = "stato")
    private String stato;
    @Column(name = "note")
    private String note;

    public Ordine() {
    }

    public Ordine(Integer idOrdine) {
        this.idOrdine = idOrdine;
    }

    public Integer getIdOrdine() {
        return idOrdine;
    }

    public void setIdOrdine(Integer idOrdine) {
        this.idOrdine = idOrdine;
    }

    public String getDataArrivo() {
        return dataArrivo;
    }

    public void setDataArrivo(String dataArrivo) {
        this.dataArrivo = dataArrivo;
    }

    public String getTipoPagamento() {
        return tipoPagamento;
    }

    public void setTipoPagamento(String tipoPagamento) {
        this.tipoPagamento = tipoPagamento;
    }

    public Boolean getResoFranco() {
        return resoFranco;
    }

    public void setResoFranco(Boolean resoFranco) {
        this.resoFranco = resoFranco;
    }

    public String getStato() {
        return stato;
    }

    public void setStato(String stato) {
        this.stato = stato;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idOrdine != null ? idOrdine.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Ordine)) {
            return false;
        }
        Ordine other = (Ordine) object;
        if ((this.idOrdine == null && other.idOrdine != null) || (this.idOrdine != null && !this.idOrdine.equals(other.idOrdine))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "ejb.warehouse.Ordine[ idOrdine=" + idOrdine + " ]";
    }
    
}
